package entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * The type Common.
 */
public class Common {
    @TableField(value = "createUser")
    private String createUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createTime")
    private Date createTime;
    @TableField(value = "updateUser")
    private String updateUser;
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Common{" +
                "createUser='" + createUser + '\'' +
                ", createTime=" + createTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }

    /**
     * Gets create user.
     *
     * @return the create user
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * Sets create user.
     *
     * @param createUser the create user
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    /**
     * Gets create time.
     *
     * @return the create time
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * Sets create time.
     *
     * @param createTime the create time
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * Gets update user.
     *
     * @return the update user
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public String getUpdateUser() {
        return updateUser;
    }

    /**
     * Sets update user.
     *
     * @param updateUser the update user
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    /**
     * Gets update time.
     *
     * @return the update time
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * Sets update time.
     *
     * @param updateTime the update time
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * Instantiates a new Common.
     *
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public Common() {
    }

    /**
     * Instantiates a new Common.
     *
     * @param createUser the create user
     * @param createTime the create time
     * @param updateUser the update user
     * @param updateTime the update time
     * @author overlook
     * @date 2022 -04-16 20:30:25
     */
    public Common(String createUser, Date createTime, String updateUser, Date updateTime) {
        this.createUser = createUser;
        this.createTime = createTime;
        this.updateUser = updateUser;
        this.updateTime = updateTime;
    }
}
